-- GENERATED SPELL FOR [Elementalist Avuun] --


function spell0_32900(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(61924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32900', 2500, 1)
end

function spell1_32900(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65123,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32900', 32000, 1)
end

function spell2_32900(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32900', 32000, 1)
end

function Sorts_32900(pUnit, Event)
local choix_sorts_32900 = math.random(0, 2)
if choix_sorts_32900 == 0 then
pUnit:RegisterEvent('spell0_32900', 1, 1)
end
if choix_sorts_32900 == 1 then
pUnit:RegisterEvent('spell1_32900', 1, 1)
end
if choix_sorts_32900 == 2 then
pUnit:RegisterEvent('spell2_32900', 1, 1)
end
end

function mob32900_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32900', math.random(1500, 3000), 1)
end

function mob32900_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32900_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32900_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32900, 1, 'mob32900_Action')
RegisterUnitEvent(32900, 2, 'mob32900_Leave')
RegisterUnitEvent(32900, 3, 'mob32900_Kill')
RegisterUnitEvent(32900, 4, 'mob32900_Die')
